{$IFNDEF GLUT_API_VERSION_1}
  {$IFNDEF GLUT_API_VERSION_2}
  {$IFNDEF GLUT_API_VERSION_3}
  {$IFNDEF GLUT_API_VERSION_4}
// Change the following line to reflect the Glut version used
    {$DEFINE GLUT_API_VERSION_3}
  {$ENDIF}
  {$ENDIF}
  {$ENDIF}
{$ENDIF}

{$DEFINE GLUT_API_VERSION_1_ORGREATER}
{$DEFINE GLUT_API_VERSION_1_GREATER}
{$DEFINE GLUT_API_VERSION_2_ORGREATER}
{$DEFINE GLUT_API_VERSION_2_GREATER}
{$DEFINE GLUT_API_VERSION_3_ORGREATER}
{$DEFINE GLUT_API_VERSION_3_GREATER}
{$DEFINE GLUT_API_VERSION_4_ORGREATER}
{$DEFINE GLUT_API_VERSION_4_GREATER}

{$IFDEF GLUT_API_VERSION_1}
const GLUT_API_VERSION = 1;
{$UNDEF GLUT_API_VERSION_1_GREATER}
{$UNDEF GLUT_API_VERSION_2_ORGREATER}
{$UNDEF GLUT_API_VERSION_2_GREATER}
{$UNDEF GLUT_API_VERSION_3_ORGREATER}
{$UNDEF GLUT_API_VERSION_3_GREATER}
{$UNDEF GLUT_API_VERSION_4_ORGREATER}
{$UNDEF GLUT_API_VERSION_4_GREATER}
{$ENDIF}

{$IFDEF GLUT_API_VERSION_2}
const GLUT_API_VERSION = 2;
{$UNDEF GLUT_API_VERSION_2_GREATER}
{$UNDEF GLUT_API_VERSION_3_ORGREATER}
{$UNDEF GLUT_API_VERSION_3_GREATER}
{$UNDEF GLUT_API_VERSION_4_ORGREATER}
{$UNDEF GLUT_API_VERSION_4_GREATER}
{$ENDIF}

{$IFDEF GLUT_API_VERSION_3}
const GLUT_API_VERSION = 3;
{$UNDEF GLUT_API_VERSION_3_GREATER}
{$UNDEF GLUT_API_VERSION_4_ORGREATER}
{$UNDEF GLUT_API_VERSION_4_GREATER}
{$ENDIF}

{$IFDEF GLUT_API_VERSION_4}
const GLUT_API_VERSION = 4;
{$UNDEF GLUT_API_VERSION_4_GREATER}
{$ENDIF}



{$IFNDEF GLUT_XLIB_IMPLEMENTATION_1}
  {$IFNDEF GLUT_XLIB_IMPLEMENTATION_2}
  {$IFNDEF GLUT_XLIB_IMPLEMENTATION_3}
  {$IFNDEF GLUT_XLIB_IMPLEMENTATION_4}
  {$IFNDEF GLUT_XLIB_IMPLEMENTATION_5}
  {$IFNDEF GLUT_XLIB_IMPLEMENTATION_6}
  {$IFNDEF GLUT_XLIB_IMPLEMENTATION_7}
  {$IFNDEF GLUT_XLIB_IMPLEMENTATION_8}
  {$IFNDEF GLUT_XLIB_IMPLEMENTATION_9}
  {$IFNDEF GLUT_XLIB_IMPLEMENTATION_10}
  {$IFNDEF GLUT_XLIB_IMPLEMENTATION_11}
  {$IFNDEF GLUT_XLIB_IMPLEMENTATION_12}
// Change the following line to reflect the Glut version used
    {$DEFINE GLUT_XLIB_IMPLEMENTATION_12}
  {$ENDIF}
  {$ENDIF}
  {$ENDIF}
  {$ENDIF}
  {$ENDIF}
  {$ENDIF}
  {$ENDIF}
  {$ENDIF}
  {$ENDIF}
  {$ENDIF}
  {$ENDIF}
{$ENDIF}

{$DEFINE GLUT_XLIB_IMPLEMENTATION_1_ORGREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_1_GREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_2_ORGREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_2_GREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_3_ORGREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_3_GREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_4_ORGREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_4_GREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_5_ORGREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_5_GREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_6_ORGREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_6_GREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_7_ORGREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_7_GREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_8_ORGREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_8_GREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_9_ORGREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_9_GREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_10_ORGREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_10_GREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_11_ORGREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_11_GREATER}
{$DEFINE GLUT_XLIB_IMPLEMENTATION_12_ORGREATER}

{$IFDEF GLUT_XLIB_IMPLEMENTATION_1}
const GLUT_XLIB_IMPLEMENTATION = 1;
{$UNDEF GLUT_XLIB_IMPLEMENTATION_1_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_2_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_2_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_3_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_3_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_4_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_4_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_5_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_5_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_6_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_6_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_7_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_7_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_8_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_8_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_12_ORGREATER}
{$ENDIF}

{$IFDEF GLUT_XLIB_IMPLEMENTATION_2}
const GLUT_XLIB_IMPLEMENTATION = 2;
{$UNDEF GLUT_XLIB_IMPLEMENTATION_2_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_3_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_3_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_4_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_4_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_5_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_5_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_6_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_6_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_7_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_7_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_8_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_8_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_12_ORGREATER}
{$ENDIF}

{$IFDEF GLUT_XLIB_IMPLEMENTATION_3}
const GLUT_XLIB_IMPLEMENTATION = 3;
{$UNDEF GLUT_XLIB_IMPLEMENTATION_3_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_4_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_4_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_5_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_5_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_6_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_6_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_7_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_7_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_8_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_8_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_12_ORGREATER}
{$ENDIF}

{$IFDEF GLUT_XLIB_IMPLEMENTATION_4}
const GLUT_XLIB_IMPLEMENTATION = 4;
{$UNDEF GLUT_XLIB_IMPLEMENTATION_4_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_5_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_5_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_6_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_6_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_7_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_7_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_8_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_8_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_12_ORGREATER}
{$ENDIF}

{$IFDEF GLUT_XLIB_IMPLEMENTATION_5}
const GLUT_XLIB_IMPLEMENTATION = 5;
{$UNDEF GLUT_XLIB_IMPLEMENTATION_5_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_6_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_6_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_7_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_7_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_8_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_8_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_12_ORGREATER}
{$ENDIF}

{$IFDEF GLUT_XLIB_IMPLEMENTATION_6}
const GLUT_XLIB_IMPLEMENTATION = 6;
{$UNDEF GLUT_XLIB_IMPLEMENTATION_6_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_7_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_7_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_8_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_8_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_12_ORGREATER}
{$ENDIF}

{$IFDEF GLUT_XLIB_IMPLEMENTATION_7}
const GLUT_XLIB_IMPLEMENTATION = 7;
{$UNDEF GLUT_XLIB_IMPLEMENTATION_7_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_8_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_8_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_12_ORGREATER}
{$ENDIF}

{$IFDEF GLUT_XLIB_IMPLEMENTATION_8}
const GLUT_XLIB_IMPLEMENTATION = 8;
{$UNDEF GLUT_XLIB_IMPLEMENTATION_8_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_12_ORGREATER}
{$ENDIF}

{$IFDEF GLUT_XLIB_IMPLEMENTATION_9}
const GLUT_XLIB_IMPLEMENTATION = 9;
{$UNDEF GLUT_XLIB_IMPLEMENTATION_9_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_12_ORGREATER}
{$ENDIF}

{$IFDEF GLUT_XLIB_IMPLEMENTATION_10}
const GLUT_XLIB_IMPLEMENTATION = 10;
{$UNDEF GLUT_XLIB_IMPLEMENTATION_10_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_ORGREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_12_ORGREATER}
{$ENDIF}

{$IFDEF GLUT_XLIB_IMPLEMENTATION_11}
const GLUT_XLIB_IMPLEMENTATION = 11;
{$UNDEF GLUT_XLIB_IMPLEMENTATION_11_GREATER}
{$UNDEF GLUT_XLIB_IMPLEMENTATION_12_ORGREATER}
{$ENDIF}

{$IFDEF GLUT_XLIB_IMPLEMENTATION_12}
const GLUT_XLIB_IMPLEMENTATION = 12;
{$ENDIF}


